package cn.clouds234.jdkfile;

/**
 * @author wyf
 * @date 2024/11/18 21:12
 */
public class SplitStr {
    public static void main(String[] args) {
        String str = "/asklj/adf.sh";
        String substring = str.substring(str.lastIndexOf("/")+1);
        System.out.println(substring);
        // adf.sh
    }


}
